// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "AIController.h"
#include "TUAIController.generated.h"

class UTUAIPerceptionComponent;
class UTURespawnComponent;
UCLASS()
class THEMUP_API ATUAIController : public AAIController
{
	GENERATED_BODY()
public:
	ATUAIController();

	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Components")
	UTUAIPerceptionComponent* TUAIPerceptionComponent;

	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Components")
	UTURespawnComponent* RespawnComponent;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "AI")
	FName FocusOnKeyName = "EnemyActor";

protected:
	virtual void OnPossess(APawn* InPawn) override;
	virtual void Tick(float DeltaTime) override;


private:
	AActor* GetFocusOnActor() const;

};
